<template>
  <div class="project">
    <Header></Header>
    <div class="proPic">
      <img src="http://47.113.189.57:5000/project.jpg" alt="" />
    </div>
    <div class="pro-main">
      <div class="pro-head">
        <img src="../assets/logo.png" alt="" />
        <div>
          <h1>个人博客</h1>
          <p>美观好用的个人博客</p>
          <p>
            <router-link to="/">预览站点</router-link>
            <a
              href="https://gitee.com/very-blue-wood/tears-often-bear-personal-blog"
              target="_blank"
              >获取项目</a
            >
          </p>
        </div>
      </div>
      <div class="pro-view">
        <img src="http://47.113.189.57:5000/project/1-1.jpg" alt="" />
        <img src="http://47.113.189.57:5000/project/1-2.jpg" alt="" />
        <img src="http://47.113.189.57:5000/project/1-3.jpg" alt="" />
      </div>
      <div class="pro-introduce">
        Kico Style
        是一个简洁的前端样式框架，只提供页面布局等基础功能。代码轻量、不冗余，适合前端初学者和探索者。
        Kico Style 自带扩展 JS
        组件，提供了消息弹框、屏幕遮罩、图片灯箱、图片懒加载、快速 AJAX
        等实用功能。
      </div>
    </div>

    <Footer></Footer>
  </div>
</template>

<script>
// @ is an alias to /src
import Header from '@/components/Header.vue'
import Footer from '@/components/Footer.vue'

export default {
  name: 'ProjectView',
  components: {
    Header,
    Footer,
  },
}
</script>

<style lang="scss" scoped>
.project {
  background-color: var(--main-bg);
}
.proPic {
  width: 100%;
  height: 500px;
  overflow: hidden;
  transition: height 0.3s;
  > img {
    width: 100%;
    min-width: 800px;
    transform: translateY(-100px);
  }
}
.pro-main {
  width: 100%;
  margin: 0 auto;
  max-width: 70em;
  padding: 20px;
  min-height: 20em;
  > .pro-head {
    display: flex;
    > img {
      width: 10em;
      height: 10em;
    }
    > div {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      padding-left: 20px;
      > h1 {
        font-weight: 300;
      }
      > p {
        > a:first-child {
          display: inline-block;
          background-color: orange;
          padding: 0.5em 1em;
          border-radius: 5px;
          margin-right: 2em;
        }
      }
    }
  }
  > .pro-view {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 1em;
    margin: 5em;
    > img {
      height: 20em;
      margin-right: 1em;
      border-radius: 5px;
      border: 1px solid #e6e6e6;
    }
  }
  > .pro-introduce {
    font-size: 1.2em;
  }
}
</style>
